<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class ConcreteMemento</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class ConcreteMemento</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
                <p class="implements">
            Implements interfaces:
            <ul>
                <li><a href="../Memento/Memento.html">Memento</a></li>            </ul>
        </p>
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">The ConcreteMemento should be used only in the Originator  (and in testing).</p>
	<ul class="tags">
				<li><span class="field">author:</span> wassim Chegham &amp; hugo Marchadour</li>
				<li><span class="field">version:</span> 0.1</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_ConcreteMemento.php.html">/ConcreteMemento.php</a> (line <span class="field">27</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																				<div class="method-definition">
					static 						<span class="method-result"><a href="../Memento/ConcreteMemento.html">ConcreteMemento</a></span>
										<a href="#getInstance" title="details" class="method-name">getInstance</a>
										()
									</div>
																																																
												<div class="method-definition">
											<span class="method-result">ConcreteMemento</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
										()
									</div>
																								<div class="method-definition">
											<span class="method-result"><a href="../Memento/Memento.html">Memento</a></span>
										<a href="#redo" title="details" class="method-name">redo</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#saveAction" title="details" class="method-name">saveAction</a>
											(<span class="var-type"><a href="../Command/Command.html">Command</a></span>&nbsp;<span class="var-name">$o</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#saveRedoAction" title="details" class="method-name">saveRedoAction</a>
											(<span class="var-type"><a href="../Command/Command.html">Command</a></span>&nbsp;<span class="var-name">$o</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#setMaxActions" title="details" class="method-name">setMaxActions</a>
											(<span class="var-type">Integer</span>&nbsp;<span class="var-name">$val</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">The</span>
										<a href="#undo" title="details" class="method-name">undo</a>
										()
									</div>
								</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodgetInstance" id="getInstance"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">static method getInstance</span> (line <span class="line-number">72</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Get the current instance of the ConcreteMemeto object</p>
	<ul class="tags">
				<li><span class="field">return:</span> The current instance of the ConcreteMemento</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result"><a href="../Memento/ConcreteMemento.html">ConcreteMemento</a></span>
		<span class="method-name">
			getInstance
		</span>
				()
			</div>
	
		
			
	</div>

<a name="method__construct" id="__construct"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">60</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">The constructor of the ConcreteMemento</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">ConcreteMemento</span>
		<span class="method-name">
			__construct
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodredo" id="redo"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">redo</span> (line <span class="line-number">87</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">The redo action</p>
	<ul class="tags">
				<li><span class="field">return:</span> The last saved memento to be redone</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../Memento/Memento.html">Memento</a></span>
		<span class="method-name">
			redo
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodsaveAction" id="saveAction"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">saveAction</span> (line <span class="line-number">130</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Save the current command so it can be played again</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			saveAction
		</span>
					(<span class="var-type"><a href="../Command/Command.html">Command</a></span>&nbsp;<span class="var-name">$o</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"><a href="../Command/Command.html">Command</a></span>
				<span class="var-name">$o</span><span class="var-description">: The command to be saved</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsaveRedoAction" id="saveRedoAction"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">saveRedoAction</span> (line <span class="line-number">158</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Save the current action and clear all the previous actions</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			saveRedoAction
		</span>
					(<span class="var-type"><a href="../Command/Command.html">Command</a></span>&nbsp;<span class="var-name">$o</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"><a href="../Command/Command.html">Command</a></span>
				<span class="var-name">$o</span><span class="var-description">: The command</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetMaxActions" id="setMaxActions"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">setMaxActions</span> (line <span class="line-number">183</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Set the new maximum allowed actions</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setMaxActions
		</span>
					(<span class="var-type">Integer</span>&nbsp;<span class="var-name">$val</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">Integer</span>
				<span class="var-name">$val</span><span class="var-description">: The maximum number of actions that can be stored</span>			</li>
				</ul>
		
			
	</div>
<a name="methodundo" id="undo"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">undo</span> (line <span class="line-number">108</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">The undo action</p>
	<ul class="tags">
				<li><span class="field">return:</span> last saved memento to be undone</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">The</span>
		<span class="method-name">
			undo
		</span>
				()
			</div>
	
		
			
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Sat, 27 Nov 2010 21:49:20 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</div></body>
</html>